package com.lvy.hczn.front.system.domain.business;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.lvy.hczn.front.common.core.domain.BaseModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.util.List;

/**
 * 轴/电机数据
 * 最小记录时间片段为30-60分钟，期间只会记录一次
 *
 * @author yw
 * @date 2022-04-03 10:16:05
 **/
@Data
@TableName("axis_data")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "轴/电机数据")
public class AxisData extends BaseModel<AxisData> {

    @ApiModelProperty("电机设置的最大力矩值")
    @TableField(value = "axis_num")
    private Integer AxisNum;

    @ApiModelProperty("电机设置的最大力矩值")
    @TableField(value = "max_torque")
    private Integer MaxTorque;

    @ApiModelProperty("电机设置的安全力矩值")
    @TableField(value = "set_torque")
    private Integer SetTorque;

    @ApiModelProperty("电机的当前力矩值")
    @TableField(value = "torque")
    private Integer torque;

    @ApiModelProperty("电机的当前力矩值")
    @TableField(exist = false)
    private List<Integer> ActTorque;

    @ApiModelProperty("电机的当前位置")
    @TableField(value = "pos")
    private BigDecimal pos;

    @ApiModelProperty("电机的当前位置")
    @TableField(exist = false)
    private List<BigDecimal> ActPos;

    @ApiModelProperty("批次")
    @TableField(value = "batch_code")
    private String batchCode;
}
